package com.yk.template.spring.mvc.controller.user;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("user")
public class UserController {

    private final Log log= LogFactory.getLog(UserController.class);
    @RequestMapping("/signIn")
    @ResponseBody
    public Object signIn(){
        this.log.fatal("signIn for fatal");
        this.log.error("signIn for error");
        this.log.warn("signIn for warn");
        this.log.info("signIn for info");
        this.log.trace("signIn for trace");
        this.log.debug("signIn for debug");
        return true;
    }

    @RequestMapping("/signUp")
    @ResponseBody
    public Object signOut(){
        return true;
    }
}
